package com.examplemartin.jpademo.dao;

import com.examplemartin.jpademo.pojo.po.supplier.SupplierPO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface SupplierDao extends JpaRepository<SupplierPO, Long> {

    // 按名称精确查询 --
    List<SupplierPO> findAllByName(String name);
    List<SupplierPO> findAllByStatus(Integer status);
}
